<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>小婷专辑</title>
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Arial', sans-serif;
        }

        body {
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            background-image: url('/image/2.jpg'); /* 程序员预设背景图片 */
            background-size: cover;
            background-position: center;
            background-repeat: no-repeat;
            transition: background-image 0.5s ease;
        }

        .password-container {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.8);
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            z-index: 1000;
        }

        .password-input {
            padding: 10px;
            width: 200px;
            margin-bottom: 10px;
            border-radius: 5px;
            border: none;
        }

        .submit-btn {
            padding: 10px 20px;
            background: #4CAF50;
            color: white;
            border: none;
            border-radius: 5px;
            cursor: pointer;
        }

        .submit-btn:hover {
            background: #4CAF50;
        }

        .player-container {
            width: 80%;
            max-width: 800px;
            background: rgba(0, 0, 0, 0.7);
            padding: 20px;
            border-radius: 10px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
            display: none; /* 默认隐藏播放器 */
        }

        video {
    width: 100%;
    border-radius: 5px;
    opacity: 0.8; /* 80%不透明度（20%透明） */
}

.video-selector {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    opacity: 0.9; /* 90%不透明度（10%透明） */
}

.video-option {
    padding: 10px;
    background: #e9b0e8;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    opacity: 0.7; /* 70%不透明度（30%透明） */
}

.video-option:hover {
    background: #e9b0e8;
    opacity: 1; /* 悬停时完全不透明 */
}
    </style>
</head>
<body>
    <!-- 密码验证界面 -->
    <div class="password-container" id="passwordContainer">
        <h2 style="color: white; margin-bottom: 20px;">请输入密码访问</h2>
        <input type="password" class="password-input" id="password" placeholder="输入密码">
        <button class="submit-btn" id="submitPassword">提交</button>
    </div>

    <!-- 视频播放器界面（默认隐藏） -->
    <div class="player-container" id="playerContainer">
        <video id="videoPlayer" controls>
            <source src="/videos/sample-video1.mp4" type="video/mp4">
            您的浏览器不支持HTML5视频播放。
        </video>
        <div class="video-selector" id="videoSelector"></div>
    </div>

    <script>
        // 密码验证逻辑
        document.addEventListener('DOMContentLoaded', () => {
            const passwordContainer = document.getElementById('passwordContainer');
            const playerContainer = document.getElementById('playerContainer');
            const submitPassword = document.getElementById('submitPassword');
            const password = document.getElementById('password');
            const videoPlayer = document.getElementById('videoPlayer');
            const videoSelector = document.getElementById('videoSelector');

            // 预设密码（实际使用时替换为你的密码）
            const CORRECT_PASSWORD = "200588";

            // 程序员预设的视频列表（视频标题和URL）
            const VIDEOS = [
                { title: "小婷旅游记", url: "/videos/sample-video1.mp4" },
                { title: "5.16晚", url: "/videos/sample-video6.mp4" },
                { title: "小婷自拍(横屏版)", url: "/videos/sample-video2.mp4" },
                { title: "小婷自拍(天生丽质)", url: "/videos/sample-video3.mp4" },
                { title: "小婷超美版", url: "/videos/sample-video4.mp4" },
                { title: "小婷超可爱版", url: "/videos/sample-video5.mp4" },
                { title: "小婷歪头杀", url: "/videos/sample-video7.mp4" },
                { title: "拜托~拜托~", url: "/videos/sample-video9.mp4" }
            ];
            // 提交密码
            submitPassword.addEventListener('click', () => {
                if (password.value === CORRECT_PASSWORD) {
                    passwordContainer.style.display = 'none';
                    playerContainer.style.display = 'block';
                    renderVideoSelector();
                } else {
                    alert('密码错误，请重试！');
                }
            });

            // 渲染视频选择器
            function renderVideoSelector() {
                VIDEOS.forEach(video => {
                    const button = document.createElement('button');
                    button.className = 'video-option';
                    button.textContent = video.title;
                    button.addEventListener('click', () => {
                        videoPlayer.src = video.url;
                        videoPlayer.play();
                    });
                    videoSelector.appendChild(button);
                });
            }
        });
    </script>
</body>
</html>